package com.heima.model.behavior.dtos;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@NotEmpty(message = "请求体不能为空")
@ApiModel(description = "不喜欢行为请求数据")
public class UnLikesBehaviorDto {

    @ApiModelProperty(value = "文章ID", required = false, example = "0")
    @NotEmpty(message = "文章ID不能为空")
    private Long articleId;

    @NotEmpty(message = "类型不能为空")
    @ApiModelProperty(value = "不喜欢类型：0 - 不喜欢，1 - 取消不喜欢", required = false, example = "0")
    private Short type;

}